<?php
/*
	插件链接选择页面
*/
defined('BY_JYA') or exit('error');
//系统链接获取接口
$return=array();
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$tabs=array(
	array('op'=>'system','plugin'=>'core','action'=>'tools.link','title'=>'系统页面链接'),
	array('op'=>'list','title'=>'插件页面'),
);
if($_RQ['op']=='list'){
	$return['list']=array(
		array('title'=>'首页','url'=>'jy_zhongyi/index/'),
		array('title'=>'校区','url'=>'jy_zhongyi/store_list/'),
		array('title'=>'老师','url'=>'jy_zhongyi/worker_list/'),
		array('title'=>'科室','url'=>'jy_zhongyi/lesson_list/'),
		array('title'=>'我的','url'=>'jy_zhongyi/home/'),
		array('title'=>'视频','url'=>'jy_zhongyi/video/','icon'=>'icon-video',),
		array('title'=>'E站新闻','url'=>'core/article.list/','icon'=>'icon-tuwen',),
		array('title'=>'科普知识','url'=>'jy_zhongyi/news/','icon'=>'icon-xiaoyuanyiqiatong',),
	);
	$htmls=array(
		'type'=>'list',
		'tabs'=>$tabs,
		'list'=>array('data'=>'list','edit'=>false,'delall'=>false,'del_one'=>false,'pagelist'=>false,'list'=>array(
			array('name'=>'title','title'=>'标题','type'=>'string'),
			array('name'=>'createtime','title'=>'创建时间','type'=>'string'),
		),'action'=>array(
			array('type'=>'modal_result','name'=>'url','title'=>'选取'),
		)),
		'search_one'=>array('name'=>'title','add'=>false),
	);
	$return['htmls']=$htmls;
	exi($return);
}
?>